import TodoList from "./src/components/TodoList";
import { ITodoData } from "./src/components/TodoList/typings";

;((doc) => {
  //1.dom操作，获取容器
  const oApp: HTMLElement = document.querySelector("#app")

  //2.定义数据
  const todoData: ITodoData[] = []

  //3.定义模块入口程序
  const init = ():void => {
    //4.创建具体类操作的实例
    const todoList: TodoList = new TodoList(oApp, todoData)
    todoList.init()
  }

  init()
})(document);